<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=640px, user-scalable=no">
    <meta name="apple-themes-web-app-capable" content="yes">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <meta content="email=no" name="format-detection">
    <meta name="format-detection" content="telephone=no">
    <title>分类选择</title>
    <link rel="stylesheet" href="/static/index/css/main.css" type="text/css" media="all">
</head>

<body style="background: #fff;">
<!--页面加载 开始-->
<div id="preloader">
    <div id="status">
        <p class="center-text"><span>拼命加载中···</span></p>
    </div>
</div>
<!--页面加载 结束-->

<div id="content_div2">
    <div class="header mb40">
        <a href="javascript:history.go(-1);" class="fanhui"></a>
        搜索
    </div>
    <div class="page_search" style="height: 90px">
        <input type="text" id="searchContent" placeholder="请输入要搜索的内容" class="search_input" />
        <input type="button" name="" id="searchBtn" value="搜索" class="search_button" />
    </div>
    <hr>

    <div class="quyu">
        <p style="font-size: 28px;margin-bottom: 16px;">分类筛选</p>
        <ul>
            <li><a class="category" id="-1">全部</a></li>
            {volist name="categoryList" id="vo"}
            <li><a class="category" id="{$vo['acc_id']}">{$vo['acc_name']}</a></li>
            {/volist}
        </ul>
    </div>
</div>




<!--底部结束-->
<script type="text/javascript" src="/static/index/js/zepto.js"></script>
<script type="text/javascript" src="/static/index/js/carousel-image.js"></script>
<script>
    $('.carousel-image').CarouselImage({
        num: $('.carousel-image .carousel-num'),
        repeat: true
    });
</script>
<script type="text/javascript" src="/static/index/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/index/js/common.js"></script>
<script type="text/javascript">
    $(".category").click(function(res){
        var acc_id=res.target.id;
        window.location.href="{:url('index/Article/goodArticleList')}?acc_id="+acc_id;
    })
    $("#searchBtn").click(function(){
        var content=$("#searchContent").val();
        if(!content){
            alert("请输入搜索内容");
            return false;
        }

        // var url="{:url('index/Institution/institutionList')}?ins_name="+content;
        var url="{:url('index/Article/goodArticleList')}?art_title="+content;
        url=encodeURI(url);
        window.location.href=url;
    });
</script>
</body>
</html>
